package com.generator.service.courseIntroduction.impl;

import com.generator.dao.courseIntroduction.CourseIntroductionDao;
import com.generator.entity.courseIntroduction.CourseIntroduction;
import com.generator.service.courseIntroduction.CourseIntroductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CourseIntroductionServiceBean implements CourseIntroductionService {

    @Autowired
    private CourseIntroductionDao courseIntroductionDao;
    @Override
    public List<CourseIntroduction> findAllCourseIntroductions() {
        return courseIntroductionDao.findAllCourseIntroductions();
    }
}
